package com.ruoyi.project.admin.personmanager.domain;


import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class Person extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /*员工编号  主键*/
    private Long personId;
    /*员工姓名  */
    private String personName;
    /*员工性别*/
    private String personSex;
    /*员工职位*/
    private String personPosition;
    /*手机*/
    private String personPhone;
    /*所属部门*/
    private String personDept;
    /*入职时间*/
    private String personDate;
    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getPersonId() {
        return personId;
    }


    public void setPersonId(Long personId) {
        this.personId = personId;
    }
    @NotBlank(message = "员工姓名不能为空")
    @Size(min = 0, max = 50, message = "项目名称长度不能超过50个字符")
    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPersonSex() {
        return personSex;
    }

    public void setPersonSex(String personSex) {
        this.personSex = personSex;
    }

    public String getPersonPosition() {
        return personPosition;
    }

    public void setPersonPosition(String personPosition) {
        this.personPosition = personPosition;
    }

    public String getPersonPhone() {
        return personPhone;
    }

    public void setPersonPhone(String personPhone) {
        this.personPhone = personPhone;
    }

    public String getPersonDept() {
        return personDept;
    }

    public void setPersonDept(String personDept) {
        this.personDept = personDept;
    }

    public String getPersonDate() {
        return personDate;
    }

    public void setPersonDate(String personDate) {
        this.personDate = personDate;
    }

    @Override
    public String toString() {
        return "Person{" +
                "personId=" + personId +
                ", personName='" + personName + '\'' +
                ", personSex=" + personSex +
                ", personPosition=" + personPosition +
                ", personPhone='" + personPhone + '\'' +
                ", personDept='" + personDept + '\'' +
                ", personDate='" + personDate + '\'' +
                '}';
    }
}
